package App.Repository.impl;

import App.Model.Task.CrmTaskMember;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface CrmTaskMemberDao extends JpaRepository<CrmTaskMember,Long> {
    @Query(value = "SELECT groupid FROM crm_task_member WHERE recstatus = 1 AND userid =?1",nativeQuery = true)
    List<String> getGroupIdsByUserId(int userid);
}
